package com.xia.demo.reflex;

public class ReflexDemo {

    static{
        System.out.println("hi");
    }

    public ReflexDemo() {
        System.out.println("nonon");
    }

    public static void main(String[] args) throws ClassNotFoundException {
//        Class clazz = ReflexDemo.class;
//        Class alunbarClass1 = Class.forName("com.xia.demo.reflex.ReflexDemo");
//        ReflexDemo reflexDemo = new ReflexDemo();
//        Class<? extends ReflexDemo> aClass = reflexDemo.getClass();
        ClassLoader systemClassLoader = ClassLoader.getSystemClassLoader();
        Class<?> aClass = systemClassLoader.loadClass("com.xia.demo.reflex.ReflexDemo");

    }
}
